package com.tongguan.paypos.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tongguan.paypos.R;
import com.tongguan.paypos.base.BaseFragment;
import com.tongguan.paypos.common.User;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Joylive on 2017/1/5 .
 */

public class DeviceInfoAboutFragment extends BaseFragment {
    @BindView(R.id.tv_merchant_name)
    TextView mTvMerchantName;
    @BindView(R.id.tv_merchant_id)
    TextView mTvMerchantId;
    @BindView(R.id.tv_merchant_name_wx)
    TextView mTvMerchantNameWx;
    @BindView(R.id.tv_merchant_id_wx)
    TextView mTvMerchantIdWx;
    @BindView(R.id.tv_merchant_name_zfb)
    TextView mTvMerchantNameZfb;
    @BindView(R.id.tv_merchant_id_zfb)
    TextView mTvMerchantIdZfb;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_devie_info_about, container, false);
        ButterKnife.bind(this, rootView);
        setTitle("关于");
        initView();
        return rootView;
    }

    private void initView() {
        mTvMerchantId.setText(User.getInstance().getMerchantId());
        mTvMerchantName.setText(User.getInstance().getMerchantName());
        mTvMerchantIdWx.setText(User.getInstance().getWxMerchantId());
        mTvMerchantNameWx.setText(User.getInstance().getWxMerchantName());
        mTvMerchantIdZfb.setText(User.getInstance().getZfbMerchantId());
        mTvMerchantNameZfb.setText(User.getInstance().getZfbMerchantName());
    }

}
